package com.example.demo.service;


import com.example.demo.entity.UserQue;
import com.example.demo.mapper.UserQueMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserQueService {
    @Autowired
    private UserQueMapper userQueMapper;

    // 获取密保的问题
    public UserQue getQuestion(Integer uid) {
        return userQueMapper.getQuestion(uid);
    }

    // 验证密保答案
    public String checkQuestion(Integer uid) {
        return userQueMapper.checkQuestion(uid);
    }
}
